function database = generate_database(method)

database = [];

for i = 1:40
    for j = 1:10
        database = [database image2vector(image_read(i,j,'pgm'), method)];
    end
end

%database = abs(database);